package org.hlopik.riverGuide.client.controller;

import org.hlopik.riverGuide.client.ApplicationFacade;
import org.hlopik.riverGuide.client.view.RiverGuideListMediator;
import org.hlopik.riverGuide.client.model.RiverGuideProxy;
import org.hlopik.riverGuide.client.view.AddRiverGuideFormMediator;
import org.puremvc.java.multicore.interfaces.INotification;
import org.puremvc.java.multicore.patterns.command.SimpleCommand;

/**
 *
 * @author f
 */
public class StartupCommand extends SimpleCommand {

    @Override
    public void execute(final INotification notification) {
        this.getFacade().registerProxy(new RiverGuideProxy());
        this.getFacade().registerMediator(new AddRiverGuideFormMediator());
        this.getFacade().registerMediator(new RiverGuideListMediator());
        sendNotification(ApplicationFacade.GET_RIVER_GUIDES);
    }
}
